home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / uother__ / 12600b01.ziv / UNLOCK.BAT < prev   
DOS Batch File  |  1989-12-11  |  787b  |  29 lines

  1. echo off
  2. rem unlock.bat (example batch file for using SENTRY to decrypt)
  3. c:\sentry/o
  4. if not errorlevel 2 goto endo
  5. if errorlevel 255 goto ctrl_brk
  6. if errorlevel 254 goto deny
  7. if errorlevel 4    goto err
  8. echo Security areas left open !!
  9. goto end
  10. :endo
  11. echo Security areas successfully unlocked
  12. goto end
  13. :err
  14. echo Cannot open security areas
  15. goto end
  16. :deny
  17. echo Access Denied
  18. rem An unsuccessful access attempt!
  19. rem You can take any kind of action you deem appropriate
  20. goto end
  21. :ctrl_brk
  22. echo Access Denied
  23. rem Ctrl-Brk was pressed...
  24. rem You can take any kind of action you deem appropriate,
  25. rem but in this case, control returns to the batch file
  26. rem only if the would-be snooper hits 'N' in response to the
  27. rem DOS question 'Terminate batch process? (Y/N)'
  28. :end
  29.